package com.zjsd.sqeybusiness.mapper;

import java.util.List;
import com.zjsd.sqeybusiness.domain.CompanyMainCategory;
import org.springframework.stereotype.Repository;

/**
 * 企业主营分类Mapper接口
 *
 * @author Zheng
 * @date 2020-11-05
 */
@Repository
public interface CompanyMainCategoryMapper
{
    /**
     * 查询企业主营分类
     *
     * @param categoryId 企业主营分类ID
     * @return 企业主营分类
     */
    public CompanyMainCategory selectCompanyMainCategoryById(Long categoryId);

    /**
     * 查询企业主营分类列表
     *
     * @param companyMainCategory 企业主营分类
     * @return 企业主营分类集合
     */
    public List<CompanyMainCategory> selectCompanyMainCategoryList(CompanyMainCategory companyMainCategory);

    /**
     * 新增企业主营分类
     *
     * @param companyMainCategory 企业主营分类
     * @return 结果
     */
    public int insertCompanyMainCategory(CompanyMainCategory companyMainCategory);

    /**
     * 修改企业主营分类
     *
     * @param companyMainCategory 企业主营分类
     * @return 结果
     */
    public int updateCompanyMainCategory(CompanyMainCategory companyMainCategory);

    /**
     * 删除企业主营分类
     *
     * @param categoryId 企业主营分类ID
     * @return 结果
     */
    public int deleteCompanyMainCategoryById(Long categoryId);

    /**
     * 批量删除企业主营分类
     *
     * @param categoryIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteCompanyMainCategoryByIds(Long[] categoryIds);
}
